package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	Num    string  `json:"num" gorm:"type:varchar(50);not null;comment:'商品编号'"`
	Name   string  `json:"name" gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Price  float64 `json:"price" gorm:"type:float(10,2);not null;comment:'市场价格'"`
	Money  float64 `json:"money" gorm:"type:float(10,2);not null;comment:'成本价格'"`
	Image  string  `json:"image" gorm:"type:varchar(200);not null;comment:'图片'"`
	Like   int     `json:"like" gorm:"type:int;comment:'收藏'"`
	UserId int     `json:"userId" gorm:"type:int;comment:'用户编号'"`
}
